<?php
/**
 * Created by PhpStorm.
 * User: admin
 * Date: 2017/2/13
 * Time: 14:45
 */

namespace app\admin\model;


use think\Model;

class Participant extends Model
{
    protected $table = 'participant';

    public $autoWriteTimestamp = true;

    public function setImagesAttr($value){
        return implode(',',$value);
    }

    public function getImagesAttr($value){
        return $value?explode(',',$value):[];
    }

    public function getNickNameAttr($value){
        return htmlspecialchars($value);
    }

    public function getXuanYanAttr($value){
        return htmlspecialchars($value);
    }

}